home *** CD-ROM | disk | FTP | other *** search
- OPT PREPROCESS
-
- MODULE 'feelin','libraries/feelin'
-
- PROC main()
- DEF c,w,p1,p2,p3,p4,g,s
-
- IF feelinbase := OpenLibrary('feelin.library',FV_VERSION)
- c := ClientObject,
- FA_Pen_Shine, 'c:7878A0',
- FA_Pen_Fill, 'c:555578',
- FA_Pen_Dark, 'c:000000',
- FA_Pen_Text, 'c:000000',
- FA_Pen_Highlight, 'c:AA7864',
-
- Child, w := WindowObject,
- FA_Back, '2:Feelin:Images/StripPurple.iff',
- FA_Window_Title, 'Feelin : Props',
-
- Child, VGroup,
- Child, TextObject, FA_Text,{__Text},FA_Fixed,TRUE, DontChain, End,
-
- Child, p1 := Prop(TRUE,32,16,0),
- Child, p2 := Prop(TRUE,32,08,0),
- Child, p3 := Prop(TRUE,32,04,0),
- Child, p4 := Prop(TRUE,32,02,0),
-
- Child, Bar,
-
- Child, VGroup, FA_FixedHeight,TRUE,
- Child, s := F_NewObjA(FC_Slider,[
- FA_Horizontal, TRUE,
- FA_Frame, FP_Frame_Slider,
- FA_Back, FP_Back_Slider,
- FA_Font, 'Nokia/13',
- FA_Numeric_Min, 0,
- FA_Numeric_Max, 32,
- FA_Numeric_Value, 0,
- FA_Numeric_Format, '`Ss`SeLevel: \d',
- TAG_DONE]),
-
- Child, g := Gauge(TRUE,0,32,0),
- End,
- End,
-
- FA_Window_ActiveObject,p4,
- End,
- End
-
- IF c
- F_DoA(p2,FM_Notify,[FA_Prop_First,FV_Notify_Always,p1,3,FM_Set,FA_Prop_First,FV_Notify_Value])
- F_DoA(p3,FM_Notify,[FA_Prop_First,FV_Notify_Always,p2,3,FM_Set,FA_Prop_First,FV_Notify_Value])
- F_DoA(p4,FM_Notify,[FA_Prop_First,FV_Notify_Always,p3,3,FM_Set,FA_Prop_First,FV_Notify_Value])
- F_DoA(s,FM_Notify,[FA_Numeric_Value,FV_Notify_Always,g,3,FM_Set,FA_Numeric_Value,FV_Notify_Value])
-
- F_DoA(w,FM_Notify,[FA_Window_CloseRequest,TRUE,FV_Notify_Client,2,FM_Client_ReturnID,FV_Client_Quit])
- F_Set(w,FA_Window_Open,TRUE)
-
- F_DoA(c,FM_Client_Run,NIL)
-
- F_DisposeObj(c)
- ENDIF
-
- CloseLibrary(feelinbase)
- ENDIF
- ENDPROC
-
- __Text:
- CHAR '`j`SsNotification example :\n',
- 'four Proportionnals,\n',
- 'a Slider and a Gauge',0
-